package com.collection.provider.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.collection.api.entity.ApplyDitribution;
import com.collection.api.entity.ApplyDitributionExample;
import com.collection.provider.business.dao.ApplyDitributionMapper;



/**
  * @Description :
  * @author : zongzp
  * @date :2017年11月7日上午9:15:16
  * @version : 1.1.0
  */
@Service
public class ApplyDitributionBiz {
	@Autowired
	private ApplyDitributionMapper applyDitributionMapper;
	
	public int countByExample(ApplyDitributionExample example){
		return applyDitributionMapper.countByExample(example);
	}

	public int deleteByExample(ApplyDitributionExample example){
    	return applyDitributionMapper.deleteByExample(example);
    }

	public int deleteByPrimaryKey(Integer applyMainId){
    	return applyDitributionMapper.deleteByPrimaryKey(applyMainId);
    }

	public int insert(ApplyDitribution record){
    	return applyDitributionMapper.insert(record);
    }

	public int insertSelective(ApplyDitribution record){
    	return applyDitributionMapper.insertSelective(record);
    }

	public List<ApplyDitribution> selectByExample(ApplyDitributionExample example){
    	return applyDitributionMapper.selectByExample(example);
    }

	public ApplyDitribution selectByPrimaryKey(Integer applyMainId){
    	return applyDitributionMapper.selectByPrimaryKey(applyMainId);
    }

	public int updateByExampleSelective(@Param("record") ApplyDitribution record, 
    		@Param("example") ApplyDitributionExample example){
    	return applyDitributionMapper.updateByExampleSelective(record, example);
    }

	public int updateByExample(@Param("record") ApplyDitribution record, 
    		@Param("example") ApplyDitributionExample example){
    	return applyDitributionMapper.updateByExample(record, example);
    }

	public int updateByPrimaryKeySelective(ApplyDitribution record){
    	return applyDitributionMapper.updateByPrimaryKeySelective(record);
    }

	public int updateByPrimaryKey(ApplyDitribution record){
    	return applyDitributionMapper.updateByPrimaryKey(record);
    }

}

